package com.java.mp.dao;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.java.mp.entity.UserEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 
 * 
 * @author jl
 * @email 31346337@qq.com
 * @date 2019-09-11 11:24:38
 */
@Mapper
public interface UserDao extends BaseMapper<UserEntity> {

    @Select("select * from user ${ew.customSqlSegment}")
    List<UserEntity> findAll(@Param(Constants.WRAPPER)Wrapper<UserEntity> wrapper);
}
